import antdEnUS from 'ant-design-vue/es/locale-provider/en_US'
import momentEU from 'moment/locale/eu'

const components = {
  antLocale: antdEnUS,
  momentName: 'eu',
  momentLocale: momentEU
}

const locale = {
  'message': '-',
  'menu.home': 'Home',

  'menu.platform': 'Platform',
  'menu.platform.dashboard': 'Dashboard',
  'menu.settings': 'Settings',
  'menu.settings.sys': 'System Settings',
  'menu.settings.account': 'Account Settings',

  'menu.task': 'Task',
  'menu.task.list': 'Task List',
  'menu.task.edit': 'Task Edit',
  'menu.task.view': 'Task View',

  'form.uint.ge': '',
  'form.view': 'View',
  'form.create': 'Create',
  'form.edit': 'Edit',
  'form.list': 'List',
  'form.design': 'Design',
  'form.maintain': 'Maintain',
  'form.remove': 'Delete',
  'form.disable': 'Disable',
  'form.enable': 'Enable',
  'form.back': 'Back',
  'form.save': 'Save',
  'form.submit': 'Submit',
  'form.send': 'Send',
  'form.reset': 'Reset',
  'form.confirm': 'Confirm',
  'form.cancel': 'Cancel',
  'form.search': 'Search',
  'form.collapse': 'Collapse',
  'form.expand': 'Expand',

  'form.pls.select': 'Please Select',
  'form.ok': 'Ok',
  'form.confirm.to.remove': 'Confirm to delete?',

  'form.all': 'All',
  'form.no': 'NO.',
  'form.step': 'Step',
  'form.result': 'Result',
  'form.result.down': 'Download Result',
  'form.vnc.url': 'Remote Desktop',
  'form.code': 'Code',
  'form.name': 'Name',
  'form.placeholder': 'Placeholder',
  'form.type': 'Type',
  'form.path': 'Path',
  'form.content': 'Content',
  'form.progress': 'Progress',
  'form.status': 'Status',
  'form.desc': 'Description',
  'form.createdBy': 'Created By',
  'form.createdAt': 'Created Time',
  'form.updatedAt': 'Updated Time',
  'form.pendingAt': 'Pending Time',
  'form.startAt': 'Start Time',
  'form.completeAt': 'Complete Time',
  'form.is.default': 'Is Default',
  'form.opt': 'Operation',
  'form.opt.log': 'Operation Log',
  'form.add': 'Add',

  'form.test.env': 'Test Environment',
  'form.group': 'Group Id',
  'form.group.tips': 'Used to group the queues.',
  'form.driver.type': 'Driver Type',
  'form.driver.type.tips': 'E.X. chrome, firefox, edge and ie.',
  'form.driver.version': 'Driver Version',
  'form.driver.version.tips': 'Major Version, E.X. 92',
  'form.test.code': 'Test Code.',
  'form.test.code.tips': 'Input Git repo or Zip file url of the test project.',
  'form.scm.account': 'Git Account',
  'form.scm.password': 'Git Password',

  'form.exec.docker.image': 'Docker Image',
  'form.exec.cmd': 'Test Command',
  'form.exec.cmd.tips': 'Input the command, may use environment variables in it.',
  'form.exec.cmd.tips.container': 'Provide more than one images if running on Docker cloud, here just input CMD lines only.',
  'form.env.var': 'Environment Variable',
  'form.env.var.tips': 'Environment variables need to passed, format NAME=value.',
  'form.result.files': 'Result Files',
  'form.result.files.tips': 'List testing result files that need to zip.',
  'form.test.type': 'Test Type',
  'form.selenium': 'Selenium',
  'form.appium': 'Appium',
  'form.selenium.test': 'Selenium Test',
  'form.appium.test': 'Appium Test',
  'form.unittest': 'UintTest',
  'form.ztf': 'ZTF',
  'form.interface_scenario': 'Interface Scenario',
  'form.interface_set': 'Interface Set',

  'form.os.category': 'System Category',
  'form.os.category.windows': 'Windows',
  'form.os.category.linux': 'Linux',

  'form.os.type': 'System Type',
  'form.os.category.mac': 'Mac',
  'form.os.type.win10': 'Win10',
  'form.os.type.win7': 'Win7',
  'form.os.type.winxp': 'WinXP',
  'form.os.type.ubuntu': 'Ubuntu',
  'form.os.type.centos': 'CentOS',
  'form.os.type.debian': 'Debian',
  'form.os.type.mac': 'Mac',

  'form.os.lang': 'System Language',
  'form.os.lang.en_us': 'US English',
  'form.os.lang.zh_cn': 'Simple Chinese',
  'form.docker.image': 'Docker Image',
  'form.docker.image.name': 'Image Name',
  'form.docker.image.src': 'Image Source',
  'form.docker.image.src.cloud': 'Docker Cloud',

  'form.edit.env': 'Edit Environment',

  'history.type.task': 'Task',
  'history.type.queue': 'Queue',
  'history.type.build': 'Build',
  'history.type.vm': 'VM',

  'build.init': 'Init',
  'build.progress.start': 'Start',
  'build.progress.res': 'Prepare',
  'build.progress.exec': 'Execution',
  'build.progress.end': 'End',

  'build.progress.created': 'Created',
  'build.progress.pending_res': 'Pending Resource',
  'build.progress.launch_vm': 'Launch Vm',
  'build.progress.create_vm_fail': 'Create Vm Fail',
  'build.progress.perform_request_fail': 'Perform Request Fail',
  'build.progress.appium_service_fail': 'Appium Service Fail',
  'build.progress.running': 'Running',
  'build.progress.timeout': 'Timeout',
  'build.progress.completed': 'Completed',
  'build.progress.cancel': 'Cancel',

  'build.status.created': 'Created',
  'build.status.pass': 'Pass',
  'build.status.fail': 'Fail',

  'vm.status.created': 'Created',
  'vm.status.launch': 'Launch',
  'vm.status.vm_fail_create': 'Vm Fail Create',
  'vm.status.running': 'Running',
  'vm.status.shutoff': 'Shutoff',
  'vm.status.destroy': 'Destroy',
  'vm.status.vm_fail_destroy': 'Vm Fail Destroy',
  'vm.status.busy': 'Busy',
  'vm.status.ready': 'Ready',
  'vm.status.unknown': 'Unknown',

  'status.enable': 'Enable',
  'status.disable': 'Disable',

  'valid.required.code': 'Please input code.',
  'valid.required.name': 'Please input name.',
  'valid.required.buildType': 'Please select type.',
  'valid.required.osCategory': 'Please select OS Category.',
  'valid.required.osType': 'Please select OS type.',
  'valid.required.osVersion': 'Please select OS version.',
  'valid.required.osLang': 'Please select OS Language.',
  'valid.required.scriptUrl': 'Please input test project address.',
  'valid.required.buildCommands': 'Please input test command.',
  'valid.required.resultFiles': 'Please input result files.',
  'valid.required.imageName': 'Please input image name.',
  'valid.required.imageSrc': 'Please input image source.',

  'common.login': 'Login',
  'common.logout': 'Logout',
  'common.detail': 'Detail',
  'common.request': 'Request',
  'common.status': '状态',
  'common.info': 'Info',
  'common.tips': 'Tips',
  'common.confirm': 'Confirmation',
  'common.notify': 'Notification',
  'common.create': 'Create',
  'common.back': 'Back',

  'msg.warn': 'Warning',
  'msg.confirm.to.logout': 'Do you really log-out.',
  'msg.forbidden': 'Forbidden',
  'msg.unauthorized': 'Unauthorized',
  'msg.auth.fail': 'Authorization verification failed',

  'app.setting.pagestyle': 'Page style setting',
  'app.setting.pagestyle.light': 'Light style',
  'app.setting.pagestyle.dark': 'Dark style',
  'app.setting.pagestyle.realdark': 'RealDark style',
  'app.setting.themecolor': 'Theme Color',
  'app.setting.navigationmode': 'Navigation Mode',
  'app.setting.content-width': 'Content Width',
  'app.setting.fixedheader': 'Fixed Header',
  'app.setting.fixedsidebar': 'Fixed Sidebar',
  'app.setting.sidemenu': 'Side Menu Layout',
  'app.setting.topmenu': 'Top Menu Layout',
  'app.setting.content-width.fixed': 'Fixed',
  'app.setting.content-width.fluid': 'Fluid',
  'app.setting.othersettings': 'Other Settings',
  'app.setting.weakmode': 'Weak Mode',
  'app.setting.copy': 'Copy Setting',
  'app.setting.loading': 'Loading theme',
  'app.setting.copyinfo': 'copy success，please replace defaultSettings in src/models/setting.js',
  'app.setting.production.hint': 'Setting panel shows in development environment only, please manually modify'
}

export default {
  ...components,
  ...locale
}
